import Vue from 'vue'
import VueRouter from 'vue-router'
import pie from '@/components/pie'
import scatter from '@/components/scatter'
import bar from '@/components/bar'
Vue.use(VueRouter)

const routes = [
  {
    path: '/',
    redirect: '/pie'
  },
  {
    path: '/pie',
    name: 'pie',
    component: pie
  },
  {
    path: '/scatter',
    name: 'scatter',
    component: scatter
  },
  {
    path: '/bar',
    name: 'bar',
    component: bar
  }
]

const router = new VueRouter({
  routes
})

export default router
